﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

    public class OrderDetail
    {
        public int Id { get; set; }
        public int OrderId { get; set; }
        public int ProductId { get; set; }
        public int Quantity { get; set; }
        public string Note { get; set; }
        public int PriceAtBuy { get; set; }

        public Product Product { get; set; }
        public string ProductName { get; set; }
        public int TotalPrice() 
        {
            return Quantity * PriceAtBuy;
        }
    }
